fix(e2e): webhook 준비 판정을 endpoint 존재 → 실제 호출 응답으로 교체 - #318
Merged
Hidden character warning
The head ref may contain hidden characters: "fix/e2e-webhook-\u771fready"
Conversation
직전 수정(rollout + endpoint 주소 확보 대기)이 불충분했다. 실측 타임라인:
10:36:24.219 STEP: waiting for webhook endpoint to be serving
10:36:24.788 cluster_recovery BeforeAll FAIL — connection refused
대기를 통과한 **0.5초 뒤** 첫 CR apply 가 죽었다. 원인은 판정 신호가 틀린 것:
readiness probe 는 healthz(8081)만 보고 **webhook TLS 포트(9443)를 보지 않는다**.
따라서 Pod=Ready + endpoint 에 주소 존재 상태에서도 webhook 서버는 아직 안 듣고
있을 수 있다 (operator 재시작 0회 — 죽은 게 아니라 아직 안 뜬 것이었다).
간접 신호 대신 **실제로 webhook 을 호출**한다. `kubectl apply --dry-run=server` 는
admission 체인을 그대로 태우면서 아무것도 저장하지 않으므로 정확한 준비 신호다.
검증 거부는 "webhook 이 응답했다"는 뜻이라 성공으로 치고, `failed calling webhook`
/ `connection refused` / `context deadline exceeded` 만 재시도한다.
verify: go vet -tags=e2e ./test/e2e/ → exit 0 / gofmt 출력 없음
(실효 검증은 머지 후 nightly 실측)
Signed-off-by: 태환 박 <phil@keiailab.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
직전 수정이 불충분했습니다
rollout 완료 + endpoint 주소 확보까지 기다리게 했는데, 실측 타임라인이 그것으로 부족함을 보여줍니다:
대기를 통과한 0.5초 뒤 첫 CR apply 가 죽었습니다.
원인: 판정 신호가 틀렸다
readiness probe 는 healthz(8081)만 보고 webhook TLS 포트(9443)를 보지 않습니다. 따라서 Pod=Ready 이고 endpoint 에 주소가 있어도 webhook 서버는 아직 안 듣고 있을 수 있습니다. (operator
Restart Count: 0— 죽은 게 아니라 아직 안 뜬 것이었습니다.)수정: 간접 신호 → 실제 호출
kubectl apply --dry-run=server로 실제로 webhook 을 호출합니다. server-side dry-run 은 admission 체인을 그대로 태우면서 아무것도 저장하지 않으므로 정확한 준비 신호입니다.failed calling webhook/connection refused/context deadline exceeded→ 재시도Verify
실효 검증은 머지 후 nightly 실측으로 합니다.
🤖 Generated with Claude Code
https://claude.ai/code/session_01QGCUdVQyTLSCiHoi5wiouH